package com.sunni.service;

import com.sunni.controller.AjaxRes;
import com.sunni.entity.Employee;
import com.sunni.entity.PageListRes;
import com.sunni.entity.QueryVo;

import java.util.List;

public interface EmployeeService {


    PageListRes selectAll(QueryVo qv);

    AjaxRes addEmployee(Employee employee);

    void updateEmployee(Employee employee);

    void updateState0(Long id);

    /*员工页面，编辑，角色下拉框 数据回显*/
    List<Long> selectRolesByEid(Long eid);

    /*login登录 ，Cintroller/realm/EmployeeRealm，根据username查询有木有这个员工*/
    Employee selectEmployeeByUsername(String username);


    /*登录页面 EmployeeController @RequiresPermissions("employee:index")-->EmployeeRealm授权方法 根据eid查询所有role name*/
    List<String> selectRoleNamesByEid(Long id);

    /*登录页面 EmployeeController @RequiresPermissions("employee:index")-->EmployeeRealm授权方法 根据eid查询所有permission presource*/
    List<String> selectPermissionResourcesByEid(Long id);
}
